package com.lzs.bootsafety.business.logs.mapper;

import com.github.pagehelper.Page;
import com.lzs.bootsafety.business.logs.entity.SysVisit;
import org.springframework.stereotype.Repository;

/**
 * @author  zhanshi Liu
 * @date    2020/04/15
 * @website www.jhmsona.cn
 */
@Repository
public interface SysVisitMapper {
    int deleteByPrimaryKey(Long visitId);

    int insert(SysVisit record);

    /**
     * 添加系统访问日志
     * @param record
     * @return
     */
    int insertSelective(SysVisit record);


    SysVisit selectByPrimaryKey(Long visitId);

    /**
     * 分页查询访问记录
     * @param sysVisit
     * @return
     */
    Page<SysVisit> selectVisitList(SysVisit sysVisit);

    int updateByPrimaryKeySelective(SysVisit record);

    int updateByPrimaryKey(SysVisit record);
}